Automatic Code Generation from Coloured Petri Nets for an Access Control System

نویسنده

  • Kjeld H. Mortensen
چکیده

We describe in this paper a general method for automatic code generation from Coloured Petri Nets (CP-nets or CPN). The method is supported by the Design/CPN tool which has been extended during the past few years, such that it also can be used to generate code automatically from a CPN model. We do not describe the algorithms for code generation but rather the context such a tool is used in. The rough outline of the method is as follows. One models the system of interest with CP-nets and Design/CPN. The modelled system behaviour is debugged and analysed, and when one has significant confidence in the model then the automatic code generation tool is applied, giving the final executable implementation as a result. Thus the behaviour of the model and executable are identical, and the traditional implementation phase has been eliminated. In this paper we demonstrate that the method is usable in practice for an industrial example, namely an access control system developed by the Danish security company Dalcotech A/S. This CPN model is a first version of the next generation of access control systems to be developed by Dalcotech. We describe the model and how they apply the automatic code generation method in order to obtain a system implementation quickly and safely. In this way Dalcotech now has the capability to reduce the time spent in the implementation phase dramatically. Another benefit is that they also dramatically reduce the amount of time spent on debugging the implementation.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Towards Automatic Code-generation from Process-partitioned Coloured Petri Nets

Constructing an abstract description in the form of a model can give useful insight into a given system, e.g., to investigate important properties of the system either through simulation or state space analysis, and to use the model as inspiration for subsequent manual implementation. The problem is that a manual implementation may introduce errors in the code not present in the model. Automati...

متن کامل

Automatic Structure-Based Code Generation from Coloured Petri Nets: A Proof of Concept

Automatic code generation based on Coloured Petri Net (CPN) models is challenging because CPNs allow for the construction of abstract models that intermix control flow and data processing, making translation into conventional programming constructs difficult. We introduce Process-Partitioned CPNs (PP-CPNs) which is a subclass of CPNs equipped with an explicit separation of process control flow,...

متن کامل

Model-based Synthesis and Diagnosis of Discrete Event Systems

In control engineering models of the controlled systems are the basis for controller synthesis as well as for analytical or simulative examination of open or closed-loop behaviour. This model-based methodology is being transferred into automation engineering by means of a development environment for the programming of logical controllers. Petri net models of the controlled system allow an autom...

متن کامل

An Evaluation of Automated Code Generation with the PetriCode Approach

Automated code generation is an important element of model driven development methodologies. We have previously proposed an approach for code generation based on Coloured Petri Net models annotated with textual pragmatics for the network protocol domain. In this paper, we present and evaluate three important properties of our approach: platform independence, code integratability, and code reada...

متن کامل

A Case Study on Coloured Petri Nets in Object-Oriented Analysis and Design

In this paper, we first demonstrate how a coloured Petri nets (CPN) model can be used to capture requirements for a considered example system, an elevator controller. Then, we show how this requirements-level CPN model is transformed into a design-level object-oriented CPN model, which is structurally and conceptually closer to class diagrams and object-oriented programming languages. The CPN m...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1999